﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace WinnerCMS.Data.Mapping
{
    public partial class PhotoMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<WinnerCMS.Model.Photo>
    {
        public PhotoMap()
        {
            Property(t => t.Content)
                .IsMaxLength()
                .IsRequired();
            Property(t => t.Author)
                
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.ComeFrom)
                
                .HasMaxLength(200)
                .IsRequired();
            Property(t => t.SEOTitle)
                
                .HasMaxLength(255)
                .IsOptional();
            Property(t => t.SEOKeyWord)
                
                .HasMaxLength(255)
                .IsOptional();
            Property(t => t.SEODescript)
                
                .HasMaxLength(255)
                .IsOptional();

            // Relationships
          

            //InitializeMapping();
        }
    }
}

